#!/bin/bash

HTTP_URL=$1

echo "执行http请求，URL=${HTTP_URL}"
response=$(curl http://${BASE_URL}:29010/api/v1/component/update -X POST -H "Authorization: ${TOKEN}" -d "{\"uploadId\":\"${uploadId}\"}")
uploadData=$(echo "$response" | jq -r '.data')
echo "http请求结果：${response}"